package ro.bluecube.admlocal.registruagricol;

import java.util.List;

import javax.ejb.Remote;

import ro.bluecube.admlocal.registruagricol.entity.Localitate;
import ro.bluecube.admlocal.registruagricol.entity.Titular;
import ro.bluecube.admlocal.registruagricol.entity.Volum;

@Remote
public interface RegistruAgricolServiceRemote {
	//LOCALITATI
	public List<Localitate> getAllLocalitate();
	public List<Localitate> getLocalitateByDenumire(String denumire);
	
	public Localitate getLocalitateById(Long id);
	
	public Localitate add(Localitate localitate);
	public Localitate update(Localitate localitate);
	public void remove(Localitate localitate);
	
	
	//VOLUME
	public List<Volum> getAllVolum();
	public List<Volum> getVolumByNumar(String numar);
	
	public Volum getVolumById(Long id);
	
	public Volum add(Volum volum);
	public Volum update(Volum volum);
	public void remove(Volum volum);
	
	//TITULARI
	public List<Titular> getAllTitular();
	public List<Titular> getTitularByVolum(Long volumId);
	
	public Titular getTitularById(Long id);
	
	public Titular add(Titular titular);
	public Titular update(Titular titular);
	public void remove(Titular titular);
}
